package com.wu.service.impl;

import com.wu.bean.Comment;
import com.wu.dao.CommentDao;
import com.wu.dao.impl.BaseDao;
import com.wu.dao.impl.CommentDaoImpl;
import com.wu.model.CommentModel;
import com.wu.service.CommentService;

import java.util.List;

public class CommentServiceImpl extends BaseDao implements CommentService {
    CommentDao commentDao=new CommentDaoImpl();
    @Override
    public List<CommentModel> queryCommentAll() {
        return commentDao.queryCommentAll();
    }

    @Override
    public List<CommentModel> queryCommentUserIdAll(int id) {
        return commentDao.queryCommentUserIdAll(id);
    }

    @Override
    public List<CommentModel> queryJournalIdAll(int id) {
        return commentDao.queryJournalIdAll(id);
    }

    @Override
    public int AddComment(Comment comment) {
        return commentDao.AddComment(comment);
    }

    @Override
    public int DeleteComment(int id) {
        return commentDao.DeleteComment(id);
    }
}
